﻿@model File_Manager.Models.Post_CYT

@{
    ViewBag.Title = "Detalles";
}

<h2>N° Ticket @Html.DisplayFor(model => model.id)</h2>

    <fieldset>
        <legend>Datos Remitente</legend>
            <table width="100%">
                <tr>
                    <td width="33%">
                        <div class="editor-label"><b>@Html.LabelFor(model => model.userName)</b></div>
                        <div class="display-field">
                                @Html.DisplayFor(model => model.userName)
                        </div>
                    </td>
                    <td>
                        <div class="editor-label"><b>Nombre Remitente</b></div>
                        <div class="display-field">
                            @ViewBag.nameGuest
                        </div>
                    </td>
                    <td>
                        <div class="editor-label"><b>Apellido Remitente</b></div>
                        <div class="display-field">
                            @ViewBag.lastnameGuest
                        </div>
                    </td>
                </tr>
                <tr>
                    <td width="33%">
                        <div class="editor-label"><b>@Html.LabelFor(model => model.dateGuest)</b></div>
                        <div class="display-field">
                            @Html.DisplayFor(model => model.dateGuest)
                        </div>
                    </td>
                    <td>
                        <div class="editor-label"><b>Correo Remitente</b></div>
                        <div class="display-field">
                        @ViewBag.mailGuest
                        </div>
                    </td>
                    <td>
                        <div class="editor-label"><b>@Html.LabelFor(model => model.idStatus)</b></div>
                        <div class="display-field">
                            @Html.DisplayFor(model => model.nStatus.name)
                        </div>
                    </td>
                </tr>
            </table>
    </fieldset>
    <fieldset>
        <legend>Mensaje CYT</legend>
            <table width="100%">
               <tr>
                   <td width="33%">
                        <div class="editor-label"><b>@Html.LabelFor(model => model.asunto)</b></div>
                        <div class="display-field">
                            @Html.DisplayFor(model => model.asunto)
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div class="editor-label"><b>@Html.LabelFor(model => model.textoGuest)</b></div>
                        <div class="display-field">
                            @Html.TextAreaFor(model => model.textoGuest, new { rows = "6", cols = "80", maxlength = "300", @readonly="readonly" })
                        </div>

                    </td>
                </tr>
            </table>
    </fieldset>
    @if (Model.idStatus==02)
    {
    <fieldset>
            <legend>Respuesta CYT</legend>
                <table width="100%">
                   <tr>
                       <td width="33%">
                            <div class="editor-label"><b>@Html.LabelFor(model => model.userAdmin)</b></div>
                            <div class="display-field">
                                @Html.DisplayFor(model => model.userAdmin)
                            </div>
                        </td>
                       <td width="33%">
                            <div class="editor-label"><b>@Html.LabelFor(model => model.dateAdmin)</b></div>
                            <div class="display-field">
                                @Html.DisplayFor(model => model.dateAdmin)
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <div class="editor-label"><b>@Html.LabelFor(model => model.textoAdmin)</b></div>
                            <div class="display-field">
                                @Html.TextAreaFor(model => model.textoAdmin, new { rows = "10", cols = "80", maxlength = "10000", @readonly="readonly" })
                            </div>

                        </td>
                    </tr>
                </table>
    </fieldset>
   }

    @if (Model.idStatus==1)
    {
    
        <p>
        <input type="submit"  value="Responder" onclick="location.href='@Url.Action("Edit", "Post_CYT", new { id = Model.id })'"/>
        <input type="submit"  value="Eliminar"onclick="location.href='@Url.Action("Delete", "Post_CYT", new { id = Model.id })'"/>
            @*Html.ActionLink("Edit", "Edit", new { id = Model.id }) |
            @Html.ActionLink("Delete", "Delete", new { id = Model.id })*@<br /><br />
            @Html.ActionLink("Ir Atras", "SearchIndexA")
        </p>

    }
